<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<button type="button" @click="baseValue = baseValue+1" >baseValue + 1</button>
			<p>baseValue:{{baseValue}}</p>
			<p>resultValue:{{resultValue}}</p>
		</div>
		<script>
			const vm = new Vue({
				el:"#app",
				data(){
					return {
						baseValue:30
					}
				},
				computed:{
					resultValue(){
						console.log(123)
						return this.baseValue*3
					}
				},
				watch:{
					baseValue(n,o){
						console.log(n,o)
					}
				}
			})
		</script>
	</body>
</html>
